package cn.xin.system.mapper;

import cn.xin.base.query.BaseQuery;
import cn.xin.system.domain.Dictionarydetail;

import java.util.List;

public interface DictionarydetailMapper {

    //查询所有
    List<Dictionarydetail> findAll();

    //查询一个
    Dictionarydetail findById(Long id);

    //新增
    void add(Dictionarydetail dictionarydetail);

    //修改
    void update(Dictionarydetail dictionarydetail);

    //删除
    void delete(Long id);

    //分页数据
    List<Dictionarydetail> queryByPage(BaseQuery query);

    //分页条数
    Integer queryByCount(BaseQuery query);

    //批量删除
    void batchDelete(List<Long> ids);

    List<Dictionarydetail> findByDeptId(Long typeId);
}
